<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <p>{{uanme}}</p>
    <button @click="add">逆转世界</button>
  </div>
  <script src="./vue-2.7.14.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        uanme: 'Hello, World'
      },
      methods: {
        add() {
          this.uanme = this.uanme.split('').reverse().join('')
        }
      }
    })
  </script>
</body>

</html>